Add PostgreSQL backend scaffolding#428
Draft
adamziel wants to merge 128 commits into
Draft
Conversation
Snapshot captured at 2026-06-09 19:58:20 UTC.
Snapshot captured at 2026-06-09 19:59:24 UTC.
Snapshot captured at 2026-06-09 20:01:29 UTC.
Snapshot captured at 2026-06-09 20:02:33 UTC.
Snapshot captured at 2026-06-09 20:03:37 UTC.
Snapshot captured at 2026-06-09 20:04:41 UTC.
Support MySQL SHOW COLLATION and SHOW DATABASES/SCHEMAS in the PostgreSQL driver using tokenized statement parsing and static MySQL-shaped result rows.
Add MySQL-compatible savepoint handling, including fail-closed handling for unsupported savepoint syntax before raw backend execution. Add scoped PostgreSQL TRUNCATE support and main database-qualified simple table targets. Keep unsupported extra-qualified CREATE TABLE targets fail-closed before DDL translation.
Add standalone CREATE/DROP INDEX support, including fail-closed handling for unsupported forms. Support main database-qualified DROP TABLE and database qualifiers for SHOW TABLES and SHOW INDEX/INDEXES/KEYS.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This PR adds PostgreSQL backend support to the SQLite Database Integration test infrastructure and makes the full WordPress PHPUnit suite practical to run in CI.
Passes the full WordPress unit test suite.
Validation
This was validated with package-level PostgreSQL PHPUnit coverage, focused WordPress PostgreSQL regressions, repeated full unfiltered local WordPress PostgreSQL runs, code review on the performance-sensitive paths, and final hosted GitHub Actions verification.
WordPress PHPUnit: SQLite 24,648 passed; PostgreSQL 24,628 passed
[####################] 100%